package com.example.ana.aop.log;

import org.springframework.aop.MethodBeforeAdvice;

import java.lang.reflect.Method;
import java.util.Arrays;

/**
 * @author hejianglong
 * @date 2019/11/14
 */
public class LogArgsAdvice implements MethodBeforeAdvice {

    @Override
    public void before(Method method, Object[] objects, Object o) throws Throwable {
        System.out.println("before: " + method.getName() + ", 参数: " + Arrays.toString(objects));
    }
}
